<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="邵铭">
    <title></title>
    <link rel="stylesheet" href="animate.css">
    <style>
        * {
            box-sizing: border-box;
        }


        body {
            margin: 0;
            padding: 0;
        }


        .container {
            width: 1200px;
            margin: 0 auto;
        }



        .head-top {
            width: 100%;
            height: 50px;
            background-color: #10C55B;
        }


        .container .left {
            list-style: none;
            margin: 0;
            padding: 0;
            width: 430px;
            /*float: left;*/
            display: flex;
            justify-content: space-around;
        }


        .container .left li:nth-child(1) {
            width: 64px;
            background-color: #01AC48;
            text-align: center;
        }


        .container .left li a {
            color: #B2F9D0;
            font-size: 17px;
            text-decoration: none;
            line-height: 50px;
        }

        .container .left li {
            padding: 0 10px;
        }

        .container .left li:hover {
            background-color: #01AC48;
            padding: 0 10px;
        }


        .right {
            width: 280px;
            float: right;
            margin-top: -50px;
        }


        .right section {
            display: inline-block;
            background-image: url(common.png);
            background-position: 112px 251px;
            width: 24px;
            height: 24px;
        }


        .right span:nth-child(1) a {
            color: #B2F9D0;
            font-size: 17px;
            text-decoration: none;
            margin-left: 3px;
            margin-right: 20px;
        }

        .right span:nth-child(1) {
            display: inline-block;
            padding: 0 10px;
            height: 50px;
            line-height: 50px;
        }

        .right span:nth-child(1):hover {
            padding: 0 10px;
            background-color: #01AC48;
        }

        .right span:nth-child(2) {
            display: inline-block;
            width: 60px;
            height: 30px;
            background-color: #01923D;
            text-align: center;
            padding-top: 5px;
            border-radius: 5px;
        }

        .right span:nth-child(2) a {
            color: #FFFFFF;
            font-size: 15px;
            text-decoration: none;
            /*padding-top: 5px;*/
            /*margin-left: 20px;*/
            /*line-height: 50px;*/
        }

        .right span:nth-child(3) a {
            color: #01923d;
            font-size: 13px;
            text-decoration: none;
            margin-left: 15px;
        }

        .qtw img {
            width: 150px;
            height: 80px;
            margin-top: 20px;
            float: left;
        }

        .search {
            width: 670px;
            height: 50px;
            border: 1px solid #CCCCCC;
            margin-left: 240px;
            margin-top: -70px;
            border-radius: 5px;
            border-right: none;
            display: flex;
            /*padding-top: -30px;*/
        }




        .search .quan {
            display: inline-block;
            width: 60px;
            height: 40px;
            line-height: 40px;
            color: #666666;
            font-size: 15px;
            text-decoration: none;
            border-right: 1px solid #CCCCCC;
            margin-left: 15px;
            margin-top: 5px;
            /*padding-top: 15px;*/
        }




        .search input {
            width: 500px;
            height: 30px;
            border: none;
            margin-left: 10px;
            padding-top: 15px;
        }





        .search input:focus {
            outline: none;
        }





        .search button {
            display: inline-block;
            width: 80px;
            height: 50px;
            background-color: #10C65C;
            text-align: center;
            border: none;
            cursor: pointer;
            margin-left: 3px;
            border-bottom-right-radius: 5px;
            border-top-right-radius: 5px;
        }






        .search span {
            display: inline-block;
            background-image: url(common.png);
            background-position: -65px -445px;
            width: 25px;
            height: 25px;
            margin: auto;
        }






        .hot {
            margin: 0;
            padding: 0;
            list-style: none;
            width: 500px;
            height: 30px;
            display: flex;
            margin-left: 240px;
        }






        .hot li {
            margin-left: 8px;
        }






        .hot li .green {
            color: #30CD71;
        }






        .hot a {
            text-decoration: none;
            font-size: 12px;
            color: #333333;
        }
        
        .box {
            /*width: 100%;
            height: 320px;
            margin:  auto;
            position: relative;*/
             position: relative;
            background: #FDF7C7;
           
        }
        .box ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .img-list li {
            /*position: absolute;*/
            /*top: 0;
            left: 0;*/
            margin:auto;
            display: none;
             width: 1200px;
            height: 320px;
        }
        .img-list li.current {
            display: block;
        }
        .indicator {
             width: 100%;
            position: absolute;
            left: 0;
            bottom: 20px;
            display: flex;
            justify-content: center;

        }
        .indicator li {
            width: 15px;
            height: 15px;
            background-color: rgba(255, 255, 255, 0.2);
            text-align: center;
            border-radius: 50%;
            cursor: pointer;
            margin: 0 3px;
         
        }
        .indicator li:hover {
            background-color: #10C65C;
        }
        .indicator li.active {
            background-color: #10C65C;
            cursor: pointer;
           
        }

        .img-click span {
            height: 140px;
            width: 50px;
            line-height: 140px;
            color: white;
            position: absolute;
            background-color: rgba(0, 0, 0, 0.1);
            top: calc(50% - 50px);
            display: none;
            font-size: 40px;
            text-align: center;
            border-radius: 5px;
            cursor: pointer;
        }

        .img-click .prev {
            left: 0;
        }
        .img-click .next {
            right: 0;
        }
        .img-click span:hover {
            background-color: #333;
        }



        /*.banner {
            position: relative;
            background: #060606;
        }

        .banner .img-list li {
            width: 1200px;
            height: 320px;
            display: none;
        }

        .banner .img-list li.current {
            display: block;
        }

        .banner-info {
            position: relative;
        }

        .indicator {
            width: 100%;
            position: absolute;
            left: 0;
            bottom: 20px;
            display: flex;
            justify-content: center;
        }

        .indicator li {
            width: 14px;
            height: 14px;
            background-color: #999;
            border-radius: 50px;
            margin: 2px;
            cursor: pointer;
        }

        .indicator li.active {
            background-color: #01923d;
        }

        .indicator li:hover {
            background-color: #01923d;
        }

        .banner .img-btn {
            width: 50px;
            height: 100%;
            background-image: url("../img/lun.png");
            background-position: 0 center;
            background-repeat: no-repeat;
            position: absolute;
            top: 0;
            display: none;
        }

        .banner .prev {
            left: 0;
        }

        .banner .prev:hover {
            background-position: -153px center;
        }

        .banner .next {
            background-position: -51px center;
            right: 0;
        }

        .banner .next:hover {
            background-position: -102px center;
        }
*/

        .main {
            /*margin-top: 30px;*/
        }




        .f-top {
            display: flex;
            justify-content: space-between;
        }




        .f-t-l {
            width: 200px;
            display: flex;
            justify-content: flex-start;
        }




        .first .f-top .tubiao {
            display: inline-block;
            background-image: url(common.png);
            background-position: -90px -410px;
            width: 40px;
            height: 35px;
            margin-top: 15px;
        }





        .first .f-top h2 {
            font-weight: normal;
            display: inline-block;
            margin-right: 20px;
        }




        .first .f-top section {
            width: 1100px;
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }




        .first .f-top a {
            text-decoration: none;
            font-size: 14px;
            color: #888888;
        }


        .first .f-top a:hover {
            color: #E97D60;
        }


        .f-picture {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            /*position:relative;*/
        }


        .f-picture li {
            width: 290px;
            height: 200px;
            margin-right: 10px;
        }

        .f-animate {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            /*position:relative;*/
            top: -200px;
            z-index: 6;
        }



        .f-picture a {
            display: inline-block;
            text-decoration: none;
            width: 290px;
            height: 200px;
            margin-right: 10px;
            border: 1px solid;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            text-align: center;
            position: relative;
            top: -204px;

            display: none;
        }




        .f-picture a p {
            width: 200px;
            display: inline-block;
            border-top: 1px solid white;
            border-bottom: 1px solid white;
            margin-top: 30px;
            height: 100px;
            margin: 50px auto;
            padding: 12px 0 0;
        }




        .f-picture a p strong {
            display: block;
            font-size: 25px;
            margin-bottom: 18px;
        }




        .f-picture a span {
            font-size: 14px;
            padding: 0;
        }



        .s-top {
            display: flex;
            justify-content: space-between;
        }




        .s-t-l {
            width: 200px;
            display: flex;
            justify-content: flex-start;
        }




        .second .s-top .tubiao {
            display: inline-block;
            background-image: url(common.png);
            background-position: -128px -414px;
            width: 30px;
            height: 30px;
            margin-top: 15px;
        }





        .second .s-top h2 {
            font-weight: normal;
            display: inline-block;
            margin-right: 20px;
        }

        .s-picture li {
            width: 290px;
            height: 386px;
            margin-right: 10px;
        }


        .s-picture a {
            display: inline-block;
            text-decoration: none;
            width: 290px;
            height: 386px;
            margin-right: 10px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            text-align: center;
            position: relative;
            top: -390px;
            display: none;
            overflow: hidden;
        }

        .s-picture a .donghua {
            width: 130px;
            display: flex;
            justify-content: space-between;
            float: right;
            margin-top: 10px;
        }

        .s-picture a .one {
            width: 60px;
        }

        .s-picture a .download {
            width: 54px;
            height: 54px;
            display: inline-block;
            background-image: url(common.png);
            background-position: 0px -60px;
        }

        .s-picture a .download:hover {
            background-image: url(common.png);
            background-position: 0px -115px;
        }

        .s-picture a section {
            margin-top: -10px;
        }

        .s-picture a .two {
            width: 60px;
        }

        .s-picture a .xin {
            width: 54px;
            height: 54px;
            display: inline-block;
            background-image: url(common.png);
            background-position: -60px -60px;
        }

        .s-picture a .xin:hover {
            background-image: url(common.png);
            background-position: -60px -115px;
        }

        .second .s-top section {
            width: 1100px;
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }




        .haibao a {
            margin-right: 25px;
        }




        .second .s-top a {
            text-decoration: none;
            font-size: 14px;
            color: #888888;
        }




        .second .s-top a:hover {
            color: #E97D60;
        }





        .s-picture {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            /*position:relative;*/
        }





        .s-picture li {
            width: 290px;
            /*height: 200px;*/
            margin-right: 10px;
        }





        .s-animate {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            /*position:relative;*/
            top: -200px;
            z-index: 6;
        }




        .s-animate li {
            width: 290px;
            height: 200px;
            margin-right: 10px;
            background-color: lightblue;
            position: relative;
            top: -200px;
            display: none;
        }







        .s-animate a p {
            width: 200px;
            display: inline-block;
            border-top: 1px solid white;
            border-bottom: 1px solid white;
            margin-top: 30px;
            height: 100px;
            margin: 50px auto;
            padding: 12px 0 0;
        }




        .s-animate a p strong {
            display: block;
            font-size: 25px;
            margin-bottom: 18px;
        }




        .s-animate a span {
            font-size: 14px;
            padding: 0;
        }




        .s-text {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
        }




        .s-text li {
            width: 290px;
            margin-right: 10px;
        }




        .s-text a {
            width: 310px;
            text-decoration: none;
            font-size: 14px;
            color: #666666;
        }




        footer {
            margin-top: 50px;
        }




        .foo {
            width: 1200px;
            height: 280px;
        }




        .foot {
            display: flex;
        }




        .foot-l {
            width: 500px;
            height: 280px;
            display: flex;
            justify-content: space-between;
        }





        .foot-l div h5 {
            color: #666666;
        }




        .foot-l div a {
            text-decoration: none;
            font-size: 12px;
            color: #888888;
        }




        .foot-l div a:hover {
            color: #14DA66;
        }




        .foot-r {
            width: 300px;
            margin-left: 400px;
        }




        .foot-r h3 a {
            font-size: 20px;
            color: #666666;
            text-decoration: none;
        }




        .foot-r p {
            font-size: 18px;
            color: #666666;
        }




        .foot-r p a {
            display: inline-block;
            font-size: 18px;
            text-decoration: none;
            color: #666666;
            /*padding-top: 10px;*/
        }




        .foot-r p .tel {
            display: inline-block;
            width: 26px;
            height: 26px;

            background-image: url(common.png);
            background-position: -66px -176px;
        }




        .email {
            display: inline-block;
            width: 26px;
            height: 26px;
            padding-top: 10px;
            background-image: url(common.png);
            background-position: -35px -171px;
        }




        .qq {
            display: inline-block;
            width: 26px;
            height: 26px;
            padding-top: 10px;
            background-image: url(common.png);
            background-position: 0px -172px;
        }




        .bqq {
            width: 140px;
            height: 40px;
            background-color: #11C75C;
            color: white;
            border: none;
            border-radius: 5px;
            line-height: 40px;
            font-size: 16px;
        }


        .bottom {
            border-top: 1px solid #666666;
            margin-top: 40px;
        }


        .weibo {
            display: inline-block;
            width: 26px;
            height: 26px;
            padding-top: 10px;
            background-image: url(common.png);
            background-position: -64px -204px;
        }


        .weixin {
            display: inline-block;
            width: 26px;
            height: 26px;
            padding-top: 10px;
            background-image: url(common.png);
            background-position: -34px -204px;
            margin-right: 50px;
        }


        .bleft {
            margin-top: 10px;
        }


        .bleft a {
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
            margin-right: 18px;
            color: #666666;
            margin-right: 20px;
        }


        .bleft a:hover {
            color: #10c55b;
        }


        .bottom p {
            display: inline-block;
            float: right;
            margin-top: -20px;
            color: #666666;
            font-size: 14px;
        }


        .clear {
            clear: both;
        }
    </style>
</head>

<body>
    <header>
        <div class="head-top">
            <div class="container">
                <ul class="left">
                    <li><a href="#">首页</a></li>
                    <li><a href="#">所有分类	&or;</a></li>
                    <li><a href="#">设计创意</a></li>
                    <li><a href="#">办公创意</a></li>
                    <li><b><a href="#">· · ·</a></b></li>
                </ul>

                <div class="right">
                    <span><section></section><a href="">VIP中心</a></span>
                    <span><a href="">请登录</a></span>
                    <span><a href="">免费注册</a></span>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="qtw">
                <img src="1.png" alt="">
                <div class="clear"></div>
            </div>
            <div class="search">
                <a href="#" class="quan">全站 &or;</a>
                <input type="text" name="" value="" placeholder="800万免费设计素材任意下载">
                <button type="btn"><span></span></button>
            </div>

            <ul class="hot">
                <li><a href="">热门搜索：</a></li>
                <li><a href="" class="green">七夕</a></li>
                <li><a href="">详情页</a></li>
                <li><a href="" class="green">icon</a></li>
                <li><a href="">主图</a></li>
                <li><a href="" class="green">秋季</a></li>
                <li><a href="" class="green">PPT模板</a></li>
                <li><a href="">EXCEL模板</a></li>
                <li><a href="">首页</a></li>
                <li><a href="">个人简历</a></li>
                <li><a href="" class="green">装饰画</a></li>
            </ul>
        </div>
        </div>
    </header>

    <div class="box">
        <ul class="img-list">
            <li class="current">
                <a href="#"><img src="banner01.jpg" alt=""></a>
            </li>
            <li>
                <a href="#"><img src="banner02.jpg" alt=""></a>
            </li>
            <li>
                <a href="#"><img src="banner03.jpg" alt=""></a>
            </li>
            <li>
                <a href="#"><img src="banner04.jpg" alt=""></a>
            </li>
            <li>
                <a href="#"><img src="banner05.jpg" alt=""></a>
            </li>
            <li>
                <a href="#"><img src="banner06.jpg" alt=""></a>
            </li>
            <li>
                <a href="#"><img src="banner07.jpg" alt=""></a>
            </li>
            <li>
                <a href="#"><img src="banner08.jpg" alt=""></a>
            </li>
        </ul>
        <ul class="indicator">
            <li class="active"></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
        <div class="img-click">
            <span class="prev">&lt;</span>
            <span class="next">&gt;</span>
        </div>
    </div>
    <!--<div class="banner">
        <div class="container banner-info">
            <ul class="img-list">
                <li class="current">
                    <a href="#"><img src="img/banner01.jpg" alt=""></a>
                </li>
                <li>
                    <a href="#"><img src="img/banner02.jpg" alt=""></a>
                </li>
                <li>
                    <a href="#"><img src="img/banner03.jpg" alt=""></a>
                </li>
                <li>
                    <a href="#"><img src="img/banner04.jpg" alt=""></a>
                </li>
                <li>
                    <a href="#"><img src="img/banner05.jpg" alt=""></a>
                </li>
                <li>
                    <a href="#"><img src="img/banner06.jpg" alt=""></a>
                </li>
                <li>
                    <a href="#"><img src="img/banner07.jpg" alt=""></a>
                </li>
                <li>
                    <a href="#"><img src="img/banner08.jpg" alt=""></a>
                </li>
            </ul>
            <ul class="indicator">
                <li class="active">
                    <a href="#"></a>
                </li>
                <li>
                    <a href="#"></a>
                </li>
                <li>
                    <a href="#"></a>
                </li>
                <li>
                    <a href="#"></a>
                </li>
                <li>
                    <a href="#"></a>
                </li>
                <li>
                    <a href="#"></a>
                </li>
                <li>
                    <a href="#"></a>
                </li>
                <li>
                    <a href="#"></a>
                </li>
            </ul>
        </div>
        <a href="#" class="img-btn prev"></a>
        <a href="#" class="img-btn next"></a>
    </div>-->


    <div class="container">
        <div class="main">
            <div class="first">
                <div class="f-top">
                    <div class="f-t-l">
                        <span class="tubiao"></span>
                        <h2>精选专题</h2>
                    </div>
                    <section>
                        <a href="">100万党建素材、PPT汇报模板无限下载，每天仅需0.18元立享VIP特权</a>
                        <a href="">更多 >></a>
                    </section>
                </div>

                <div class="f-main">
                    <ul class="f-picture">
                        <li>
                            <img src="jxzt01.jpg" alt="">
                            <a href="">
                                <p class="animated fadeInUp">
                                    <strong>喝啤酒有关</strong>
                                    <span>啤酒是如何拯救世界的</span>
                                </p>
                            </a>
                        </li>
                        <li>
                            <img src="jxzt02.jpg" alt="">
                            <a href="">
                                <p class="animated fadeInUp">
                                    <strong>爱的元素背景</strong>
                                    <span>七夕到，让爱在土中发芽</span>
                                </p>
                            </a>
                        </li>
                        <li>
                            <img src="jxzt03.jpg" alt="">
                            <a href="">
                                <p class="animated fadeInUp">
                                    <strong>鲜花背景精选</strong>
                                    <span>为你的设计锦上添花</span>
                                </p>
                            </a>
                        </li>
                        <li>
                            <img src="jxzt04.jpg" alt="">
                            <a href="">
                                <p class="animated fadeInUp">
                                    <strong>枫叶元素背景精选</strong>
                                    <span>一叶而知秋</span>
                                </p>
                            </a>
                        </li>
                    </ul>

                </div>
            </div>

            <div class="second">
                <div class="s-top">
                    <div class="s-t-l">
                        <span class="tubiao"></span>
                        <h2>商用海报</h2>
                    </div>
                    <section>
                        <span class="haibao">
                      <a href="">招聘海报</a>
                      <a href="">配图海报</a>
                      <a href="">企业文化</a>
                      <a href="">促销海报</a>
                      <a href="">原创插画</a>
                
                  </span>
                        <a href="">更多 >></a>
                    </section>
                </div>

                <div class="s-main">
                    <ul class="s-picture">
                        <li>
                            <img src="syhb01.jpg" alt="">
                            <a href="">
                                <div class="donghua animated fadeInDown">
                                    <div class="one">
                                        <span class="download"></span>
                                        <section>
                                            251
                                        </section>
                                    </div>
                                    <div class="two">
                                        <span class="xin"></span>
                                        <section>
                                            297
                                        </section>
                                    </div>
                                </div>
                            </a>

                        </li>
                        <li>
                            <img src="syhb02.jpg" alt="">
                            <a href="">
                                <div class="donghua animated fadeInDown">
                                    <div class="one">
                                        <span class="download"></span>
                                        <section>
                                            251
                                        </section>
                                    </div>
                                    <div class="two">
                                        <span class="xin"></span>
                                        <section>
                                            297
                                        </section>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li>
                            <img src="syhb03.jpg" alt="">
                            <a href="">
                                <div class="donghua animated fadeInDown">
                                    <div class="one">
                                        <span class="download"></span>
                                        <section>
                                            251
                                        </section>
                                    </div>
                                    <div class="two">
                                        <span class="xin"></span>
                                        <section>
                                            297
                                        </section>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li>
                            <img src="syhb04.jpg" alt="">
                            <a href="">
                                <div class="donghua animated fadeInDown">
                                    <div class="one">
                                        <span class="download"></span>
                                        <section>
                                            251
                                        </section>
                                    </div>
                                    <div class="two">
                                        <span class="xin"></span>
                                        <section>
                                            297
                                        </section>
                                    </div>
                                </div>
                            </a>
                        </li>
                    </ul>


                    <ul class="s-text">
                        <li><a href="">超清新雪糕夏日凉爽海报</a></li>
                        <li><a href="">文艺夏日时光菠萝蓝色简约海报设计微信配图</a></li>
                        <li><a href="">七夕情人节扁平风创意简约商业海报设计模板</a></li>
                        <li><a href="">我的前半生文艺情感配图海报设计</a></li>
                    </ul>

                </div>
            </div>
        </div>
    </div>


    <footer>
        <div class="container">
            <div class="foo">
                <div class="foot">
                    <div class="foot-l">
                        <div>
                            <h5>常见问题</h5>
                            <p><a href="#">成为特邀设计师</a></p>
                            <p><a href="#">成为原创贡献者</a></p>
                            <p><a href="#">注册登录</a></p>
                            <p><a href="#">帐号/密码</a></p>
                            <p><a href="#">充值/售后</a></p>
                            <p><a href="#">版权投诉</a></p>
                        </div>
                        <div>
                            <h5>关于千图网</h5>
                            <p><a href="#">关于我们</a></p>
                            <p><a href="#">媒体报道</a></p>
                            <p><a href="#">加入我们</a></p>
                            <p><a href="#">心系千图</a></p>
                            <p><a href="#">每日最新</a></p>
                        </div>
                        <div>
                            <h5>产品服务</h5>
                            <p><a href="">官方博客</a></p>
                            <p><a href="">帮助中心</a></p>
                            <p><a href="">千图导航</a></p>

                        </div>
                        <div>
                            <h5>友情链接</h5>
                            <p><a href="">我图网</a></p>
                            <p><a href="">千库网</a></p>
                            <p><a href="">摄图网</a></p>
                            <p><a href="">包图网</a></p>
                            <p><a href="">视达网</a></p>
                            <p><a href="">更多>></a></p>
                        </div>
                    </div>
                    <div class="foot-r">
                        <h3><a href="#">客服咨询</a></h3>
                        <p> <span class="tel"></span>400-998-7011 （9:00-18:00）</p>
                        <p> <span class="email"></span> <a href="">feedback@58pic.com</a></p>
                        <button type="" class="bqq"> <span class="qq"></span>点我交谈</button>
                    </div>
                </div>
                <div class="bottom">
                    <div class="bleft">
                        <span class="weibo"></span>
                        <span class="weixin"></span>
                        <a href="">注册声明</a>
                        <a href="">版权声明</a>
                        <a href="">售后服务</a>
                    </div>

                    <p>
                        Copyright ©2013-2017 千图网 沪ICP备10011451号-6上海工商 安全实名验证 信用网站
                    </p>
                    <div class="clear"></div>
                </div>
            </div>
    </footer>
</body>

</html>
<script>
    // // 轮播图
    // var banner = document.querySelector('.banner');
    // var imgLis = document.querySelectorAll('.banner .img-list li');
    // var indicators = document.querySelectorAll('.banner .indicator li');
    // var prev = document.querySelector('.banner .prev');
    // var next = document.querySelector('.banner .next');

    // var index = 0;//记录当前图片的索引值

    // var bgColorArr = ['#060606', '#feff0f', '#fdf100', '#2c9bff', '#89dce3', '#fef8b3', '#110204', '#f4cad8'];
    // function showImg() {
    //     for (var i = 0; i < imgLis.length; i++) {
    //         // 先把所有图片隐藏，所有指示灯的背景去掉
    //         imgLis[i].className = '';
    //         indicators[i].className = '';
    //     }
    //     console.log(index);
    //     // 根据index的值，来显示图片和改变指示灯，banner的背景
    //     imgLis[index].className = 'current';
    //     indicators[index].className = 'active';
    //     banner.style.backgroundColor = bgColorArr[index];
    // }
    // // 上一张
    // function prevImg() {
    //     index = index == 0 ? imgLis.length - 1 : index - 1;
    //     showImg();
    // }
    // function nextImg() {
    //     index = index == imgLis.length - 1 ? 0 : index + 1;
    //     showImg();
    // }


    // // 1.自动切换
    // var timer = setInterval(nextImg, 1000);

    // // 鼠标进入容器，自动切换停下来
    // banner.onmouseover = function () {
    //     clearInterval(timer);
    //     timer = null;
    //     prev.style.display = 'block';
    //     next.style.display = 'block';
    // }
    // banner.onmouseout = function () {
    //     prev.style.display = 'none';
    //     next.style.display = 'none';
    //     if (timer != null) {
    //         // 定时器已经开启，不要重复开启
    //         return;
    //     }
    //     timer = setInterval(nextImg, 1000);
    // }

    // // 2.点击指示灯切换图片
    // for (var i = 0; i < indicators.length; i++) {
    //     indicators[i].index = i;
    //     indicators[i].onclick = function () {
    //         index = this.index;
    //         showImg();
    //     }
    // }

    // // 3.手动点击按钮切换
    // prev.onclick = function () {
    //     prevImg();
    // }
    // next.onclick = function () {
    //     nextImg();
    // }


    window.onload = function () {
        var box = document.querySelector('.box');
        var imgLis = document.querySelectorAll('.img-list li');
        var indicatorLis = document.querySelectorAll('.indicator li');
        var prev = document.querySelector('.prev');
        var next = document.querySelector('.next');
var bgColorArr = ['#FDF7C7', '#110104', '#540A87', '#FFFF0B', '#F4CAD8', '#FDF001', '#040404', '#89DCE4'];
        var index = 0;
        function prevImg() {
            index =
                index == 0 ? index = imgLis.length - 1 : index - 1;
        }
        function nextImg() {
            index =
                index == imgLis.length - 1 ? 0 : index + 1;

            showImg();
        }
        function showImg() {
            for (var i = 0; i < imgLis.length; i++) {
                imgLis[i].className = '';
                indicatorLis[i].className = '';
            }

            imgLis[index].className = 'current';
            indicatorLis[index].className = 'active';
    box.style.backgroundColor = bgColorArr[index];
        }
        var timer = setInterval(nextImg, 2000);
        for (var i = 0; i < indicatorLis.length; i++) {
            indicatorLis[i].index = i;
            indicatorLis[i].onclick = function () {
                clearInterval(timer);
                timer = null;
                index = this.index;
                showImg();
            }
            //  indicatorLis[i].onmouseover = function (){
            //      indicatorLis[index].style.backgroundColor='red';
            //  }
            indicatorLis[i].onmouseout = function () {
                if (timer != null) {
                    return;
                }
                timer = setInterval(nextImg, 2000);
            }
        }
        box.onmouseover = function () {
            clearInterval(timer);
            timer = null;
            prev.style.display = 'block';
            next.style.display = 'block';
        }
        box.onmouseout = function () {
            if (timer != null) {
                return;
            }
            timer = setInterval(nextImg, 1000);
            prev.style.display = 'none';
            next.style.display = 'none';
        }
        prev.onclick = function () {
            prevImg();
            showImg();
        }
        next.onclick = function () {
            nextImg();
        }

    }

    var fpicture = document.queryCommandState('.f-picture');
    var spicture = document.queryCommandState('.s-picture');
    var lisone = document.querySelectorAll('.f-picture li');
    var a = document.querySelectorAll('.f-picture li a');
    for (i = 0; i < lisone.length; i++) {
        lisone[i].index = i;
        a[i].index = i;
        lisone[i].onmouseover = function (ev) {
            a[this.index].style.display = 'block';
        }
        lisone[i].onmouseout = function () {
            a[this.index].style.display = 'none';
        }
    }
    var listwo = document.querySelectorAll('.s-picture li');
    var atwo = document.querySelectorAll('.s-picture li a');
    for (i = 0; i < listwo.length; i++) {
        listwo[i].index = i;
        atwo[i].index = i;
        listwo[i].onmouseover = function (ev) {
            atwo[this.index].style.display = 'block';
        }
        listwo[i].onmouseout = function () {
            atwo[this.index].style.display = 'none';
        }
    }

</script>